package ldh.text.util;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

public class FileSizeUtil {

    /**
     * 获取文件大小
     * @param path
     * @return
     * @throws IOException
     */
    public static long getFileSize(Path path) throws IOException {
        return Files.size(path);
    }
}
